/**
 * 静态内部类
 * @Author Stark
 * @Date 2022/2/9 12:19
 */
public class Outter2 {
    private static int test = 10;
    private String msg = "外部类的成员变量";
    // 静态内部类，就是一个普通类，只是把他套在了Outter的里面而已。
    public static class Inner{
        private static int num = 100;
        private String str = "内部类的成员成员变量";
        public void fun(){
            System.out.println(test);
            System.out.println(new Outter2().msg);
        }
    }
    public void test(){
        Inner inner = new Inner();
    }
    public static void main(String[] args) {
        Inner inner = new Inner();
        inner.fun();
    }
}
